package cn.zbmao.web.util;

import java.util.Date;

/**
 * Created by Administrator on 2014/12/16.
 */
public class CookieUtil {
    /**
     *
     * @param userId 用户Id
     * @param userLoginTime 用户登陆时间
     * @return
     * 通过用户Id与用户登陆时间拼接生成登陆cookie
     */
    public static String getCookie(int userId,Date userLoginTime){
        return DegistUtil.md5(DegistUtil.md5(userId+userLoginTime.toString()));
    }
}
